﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.BOM
{
    /// <summary>
    /// BOM配件
    /// </summary>
    public class BomParts
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int PartsId { get; set; }
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BomCode { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        public string PartsCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string PartsName { get; set; }
        /// <summary>
        /// 规格类型
        /// </summary>
        public string PartsType { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string PartsUnit { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public int PartsBrand { get; set; }
        /// <summary>
        /// 配件数量
        /// </summary>
        public int PartsNum { get; set; }
        /// <summary>
        /// 损耗率
        /// </summary>
        public string PartsLoss { get; set; }
        /// <summary>
        /// 当前库存
        /// </summary>
        public int Inventory { get; set; }
        /// <summary>
        /// 可供生产
        /// </summary>
        public int AvailableProduce { get; set; }
        /// <summary>
        /// 父级BOM配件Id
        /// </summary>
        public int? PId { get; set; }
    }
}
